<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo ($title); ?></title>
  <meta name="description" content="这是一个 help 页面">
  <meta name="keywords" content="help">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" /> 
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" type="text/css" href="/blog/Public/assets/css/amazeui.min.css" />
  <link rel="stylesheet" type="text/css" href="/blog/Public/assets/css/admin.css" />
  <script type="text/javascript" src="/blog/Public/assets/js/jquery.min.js"></script>
   <script type="text/javascript" src="/blog/Public/assets/js/amazeui.min.js"></script>
</head>
<body>
<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
    <strong>小草——</strong> <small>blog后台管理系统</small>
  </div>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">   
    <?php if(empty($_SESSION['name'])): ?><li><a href="<?php echo U('Member/login');?>"><span class="am-icon-user"></span> 登录</a></li>
          <li><a href="<?php echo U('Member/reg');?>"><span class="am-icon-pencil"></span> 注册</a></li>  
    <?php else: ?>
     <li><a href="<?php echo U('Member/login');?>"><span class="am-icon-user"></span>  欢迎您：<?php echo (session('name')); ?></a></li>
          <li><a href="<?php echo U('Member/logout');?>"><span class="am-icon-sign-out"></span>注销</a></li><?php endif; ?>                                    
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas am-dh">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
       <li><a href="<?php echo U('index/view');?>"><span class="am-icon-home"></span> 博客首页</a></li>
       <li><a href="<?php echo U('Articletype/view');?>"><span class="am-icon-navicon"></span> 博客分类</a></li>
       <li><a href="<?php echo U('Article/view');?>"><span class="am-icon-file"></span> 博客文章</a></li>
       <li><a href="<?php echo U('Master/view');?>"><span class="am-icon-user"></span> 博主基本资料</a></li>
       <li><a href="<?php echo U('Photo/view');?>"><span class="am-icon-camera"></span> 博客相册</a></li> 
       <li><a href="<?php echo U('Friend/view');?>"><span class="am-icon-users"></span> 博客朋友</a></li>
       <li><a href="<?php echo U('Runtime/view');?>"><span class="am-icon-close"></span> 清理缓存</a></li>                                                   
      </ul>
       <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-bookmark"></span> 公告</p>
          <p>时光静好，与君语；细水流年，与君同。—— 小草</p>
        </div>
      </div>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-tag"></span> wiki</p>
          <p>Welcome to the 小草 bolog!</p>
        </div>
      </div>   
    </div>
  </div>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
  
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf">
          <strong class="am-text-primary am-text-lg">博主基本资料</strong> /
          <small>blogzl</small>
        </div>
      </div>
      <hr/>

     
<style>
.layui-form-label{
	width:110px !important;
	
}
</style>
<link rel="stylesheet" type="text/css" href="/blog/Public/layui/css/layui.css" />

  <form class="layui-form" action="<?php echo ($url); ?>" method="post"  enctype="multipart/form-data" >
	
  <div class="layui-form-item"> 
    <label class="layui-form-label">上传图片：</label>
	  <div class="layui-input-block">
	    <input type="file" name="master_photo" id="master_photo">
	  </div>
	</div>
	<div class="layui-form-item">     
     <?php if(!empty($Masterid["master_photo"])): ?><label class="layui-form-label">图片：</label>
	  <div class="layui-input-block">	
      <img src="/blog/<?php echo ($Masterid["master_thumphoto"]); ?>"  class="am-img-thumbnail am-radius" width="60" height="40">       
	  </div><?php endif; ?>
	</div>
	

	<input type="hidden" name="master_id" id="master_id" value="<?php if(!empty($Masterid["master_id"])): echo ($Masterid["master_id"]); endif; ?>"/>
  <div class="layui-form-item">
    <label class="layui-form-label">姓名：</label>
    <div class="layui-input-block">
      <input type="text"  name="master_name" lay-verify="title" value="<?php if(!empty($Masterid["master_name"])): echo ($Masterid["master_name"]); endif; ?>" autocomplete="off" placeholder="请输入姓名" class="layui-input">
    </div>
  </div>
  
  
  <div class="layui-form-item">
    <label class="layui-form-label">qq：</label>
    <div class="layui-input-block">
      <input type="number" name="master_qq" lay-verify="number" value="<?php if(!empty($Masterid["master_qq"])): echo ($Masterid["master_qq"]); endif; ?>" autocomplete="off" placeholder="qq号码" class="layui-input">
    </div>
  </div>
  
  
  <div class="layui-form-item">  
      <label class="layui-form-label">手机：</label>
      <div class="layui-input-block">
        <input type="tel" name="master_phone" lay-verify="phone" value="<?php if(!empty($Masterid["master_phone"])): echo ($Masterid["master_phone"]); endif; ?>" placeholder="请输入手机号" autocomplete="off" class="layui-input">
    </div>
   </div>
   
    <div class="layui-form-item">
      <label class="layui-form-label">邮箱：</label>
      <div class="layui-input-block">
        <input type="text" name="master_email" lay-verify="email" placeholder="请输入邮箱" value="<?php if(!empty($Masterid["master_email"])): echo ($Masterid["master_email"]); endif; ?>" autocomplete="off" class="layui-input">
      </div>
    </div>
      
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">个人简介</label>
    <div class="layui-input-block">
      <textarea class="layui-textarea layui-hide" name="master_info"lay-verify="content" id="LAY_demo_editor"><?php if(!empty($Masterid["master_info"])): echo ($Masterid["master_info"]); endif; ?></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="am-btn am-btn-primary" lay-submit="submit" ><?php echo ($info); ?></button>   
    </div>
  </div>
  
</form>
   
<script type="text/javascript" src="/blog/Public/layui/layui.js"></script>
<script>
layui.use(['form', 'layedit'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit  
  
  layui.use('layedit', function(){
  layedit.build('LAY_demo_editor', {
  tool: [
  'strong' 
  ,'italic' 
  ,'underline' 
  ,'del'  
  ,'|' 
  ,'left' 
  ,'center' 
  ,'right' 
  ,'link' 
  ,'unlink' 
  ,'face' 
],
  height: 150
}); 
});
 
  form.verify({
    title: function(value){
      if(value.length < 2){
        return '标题至少得2个字符啊';
      }
    }
    
  });
  
  

  
});
</script>
  

   



 </div>
    <footer class="admin-content-footer">
      <hr>
      <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>
  </div>
  <!-- content end -->



</div>



</body>
</html>